package ihis.model;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * 프로젝트 진행 추이 그래프 정보
 * @author yoni230
 *
 * 추이 그래프의 한 점을 의미하는 엔티티
 * (리포트 정보는 PredictedCurveReport를 참고)
 */
/**
 * @author minho kim
 *
 */
public class PredictedCurve implements Serializable {
	private static final long serialVersionUID = 422481625878056824L;
	
	/** 측정 시점 : start/endDate를 measureDate로 변경함 */
	private Date measureDate;
	
	private int periodType;
	
	/** 측정 값 */
	private double value;
	
	/** 프로젝트 ID */
	private String projectId;
	
	/** 팀 ID */
	private String teamId;
	
	/** 소유자 ID */
	private String ownerId;
	
	/** 소유자 종류 */
	private int  ownerType;
	
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("Curve Value - ").append("PID: ").append(projectId).append(" OID: ").append(ownerId)
			.append(" Value: ").append(value);
		return sb.toString();
	}
	
	/**
	 * @return the projectId
	 */
	public String getProjectId() {
		return projectId;
	}
	/**
	 * @param projectId the projectId to set
	 */
	public void setProjectId(String projectId) {
		this.projectId = projectId;
	}

	/**
	 * @return the measureDate
	 */
	public Date getMeasureDate() {
		return measureDate;
	}

	/**
	 * @param measureDate the measureDate to set
	 */
	public void setMeasureDate(Date measureDate) {
		this.measureDate = measureDate;
	}

	/**
	 * @return the value
	 */
	public double getValue() {
		return value;
	}

	/**
	 * @param value the value to set
	 */
	public void setValue(double value) {
		this.value = value;
	}
	/**
	 * @return the ownerType
	 */
	public int getOwnerType() {
		return ownerType;
	}
	/**
	 * @param ownerType the ownerType to set
	 */
	public void setOwnerType(int ownerType) {
		this.ownerType = ownerType;
	}
	/**
	 * @return the ownerId
	 */
	public String getOwnerId() {
		return ownerId;
	}
	/**
	 * @param ownerId the ownerId to set
	 */
	public void setOwnerId(String ownerId) {
		this.ownerId = ownerId;
	}
	/**
	 * @return the teamId
	 */
	public String getTeamId() {
		return teamId;
	}
	/**
	 * @param teamId the teamId to set
	 */
	public void setTeamId(String teamId) {
		this.teamId = teamId;
	}
	
	/**
	 * @return PeriodicType
	 */
	public int getPeriodType() {
		return periodType;
	}
	
	/**
	 * @param periodicType PeriodicType
	 */
	public void setPeriodType(int periodicType) {
		this.periodType = periodicType;
	}
	
}
